let allData = [{
  "flbh": "0",
  "flmc": "分类0",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "00",
  "spmc": "商品0",
  "spfl": "分类0",
  "spsl": "1000",
  "bh": "000",
  "rksl": "1000",
  "rkrq": "2020-12-10",
  "yjsl": "100",
  "cksl": "1000",
  "ckrq": "2021-12-28",
  "yhm": "用户0",
  "xm": "张三0",
  "xb": "男"
},
{
  "flbh": "1",
  "flmc": "分类1",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "01",
  "spmc": "商品1",
  "spfl": "分类1",
  "spsl": "1001",
  "bh": "001",
  "rksl": "1001",
  "rkrq": "2020-12-10",
  "yjsl": "101",
  "cksl": "1001",
  "ckrq": "2021-12-28",
  "yhm": "用户1",
  "xm": "张三1",
  "xb": "男"
},
{
  "flbh": "2",
  "flmc": "分类2",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "02",
  "spmc": "商品2",
  "spfl": "分类2",
  "spsl": "1002",
  "bh": "002",
  "rksl": "1002",
  "rkrq": "2020-12-10",
  "yjsl": "102",
  "cksl": "1002",
  "ckrq": "2021-12-28",
  "yhm": "用户2",
  "xm": "张三2",
  "xb": "男"
},
{
  "flbh": "3",
  "flmc": "分类3",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "03",
  "spmc": "商品3",
  "spfl": "分类3",
  "spsl": "1003",
  "bh": "003",
  "rksl": "1003",
  "rkrq": "2020-12-10",
  "yjsl": "103",
  "cksl": "1003",
  "ckrq": "2021-12-28",
  "yhm": "用户3",
  "xm": "张三3",
  "xb": "男"
},
{
  "flbh": "4",
  "flmc": "分类4",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "04",
  "spmc": "商品4",
  "spfl": "分类4",
  "spsl": "1004",
  "bh": "004",
  "rksl": "1004",
  "rkrq": "2020-12-10",
  "yjsl": "104",
  "cksl": "1004",
  "ckrq": "2021-12-28",
  "yhm": "用户4",
  "xm": "张三4",
  "xb": "男"
},
{
  "flbh": "5",
  "flmc": "分类5",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "05",
  "spmc": "商品5",
  "spfl": "分类5",
  "spsl": "1005",
  "bh": "005",
  "rksl": "1005",
  "rkrq": "2020-12-10",
  "yjsl": "105",
  "cksl": "1005",
  "ckrq": "2021-12-28",
  "yhm": "用户5",
  "xm": "张三5",
  "xb": "男"
},
{
  "flbh": "6",
  "flmc": "分类6",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "06",
  "spmc": "商品6",
  "spfl": "分类6",
  "spsl": "1006",
  "bh": "006",
  "rksl": "1006",
  "rkrq": "2020-12-10",
  "yjsl": "106",
  "cksl": "1006",
  "ckrq": "2021-12-28",
  "yhm": "用户6",
  "xm": "张三6",
  "xb": "男"
},
{
  "flbh": "7",
  "flmc": "分类7",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "07",
  "spmc": "商品7",
  "spfl": "分类7",
  "spsl": "1007",
  "bh": "007",
  "rksl": "1007",
  "rkrq": "2020-12-10",
  "yjsl": "107",
  "cksl": "1007",
  "ckrq": "2021-12-28",
  "yhm": "用户7",
  "xm": "张三7",
  "xb": "男"
},
{
  "flbh": "8",
  "flmc": "分类8",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "08",
  "spmc": "商品8",
  "spfl": "分类8",
  "spsl": "1008",
  "bh": "008",
  "rksl": "1008",
  "rkrq": "2020-12-10",
  "yjsl": "108",
  "cksl": "1008",
  "ckrq": "2021-12-28",
  "yhm": "用户8",
  "xm": "张三8",
  "xb": "男"
},
{
  "flbh": "9",
  "flmc": "分类9",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "09",
  "spmc": "商品9",
  "spfl": "分类9",
  "spsl": "1009",
  "bh": "009",
  "rksl": "1009",
  "rkrq": "2020-12-10",
  "yjsl": "109",
  "cksl": "1009",
  "ckrq": "2021-12-28",
  "yhm": "用户9",
  "xm": "张三9",
  "xb": "男"
},
{
  "flbh": "10",
  "flmc": "分类10",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "010",
  "spmc": "商品10",
  "spfl": "分类10",
  "spsl": "10010",
  "bh": "0010",
  "rksl": "10010",
  "rkrq": "2020-12-10",
  "yjsl": "1010",
  "cksl": "10010",
  "ckrq": "2021-12-28",
  "yhm": "用户10",
  "xm": "张三10",
  "xb": "女"
},
{
  "flbh": "11",
  "flmc": "分类11",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "011",
  "spmc": "商品11",
  "spfl": "分类11",
  "spsl": "10011",
  "bh": "0011",
  "rksl": "10011",
  "rkrq": "2020-12-10",
  "yjsl": "1011",
  "cksl": "10011",
  "ckrq": "2021-12-28",
  "yhm": "用户11",
  "xm": "张三11",
  "xb": "女"
},
{
  "flbh": "12",
  "flmc": "分类12",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "012",
  "spmc": "商品12",
  "spfl": "分类12",
  "spsl": "10012",
  "bh": "0012",
  "rksl": "10012",
  "rkrq": "2020-12-10",
  "yjsl": "1012",
  "cksl": "10012",
  "ckrq": "2021-12-28",
  "yhm": "用户12",
  "xm": "张三12",
  "xb": "女"
},
{
  "flbh": "13",
  "flmc": "分类13",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "013",
  "spmc": "商品13",
  "spfl": "分类13",
  "spsl": "10013",
  "bh": "0013",
  "rksl": "10013",
  "rkrq": "2020-12-10",
  "yjsl": "1013",
  "cksl": "10013",
  "ckrq": "2021-12-28",
  "yhm": "用户13",
  "xm": "张三13",
  "xb": "女"
},
{
  "flbh": "14",
  "flmc": "分类14",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "014",
  "spmc": "商品14",
  "spfl": "分类14",
  "spsl": "10014",
  "bh": "0014",
  "rksl": "10014",
  "rkrq": "2020-12-10",
  "yjsl": "1014",
  "cksl": "10014",
  "ckrq": "2021-12-28",
  "yhm": "用户14",
  "xm": "张三14",
  "xb": "女"
},
{
  "flbh": "15",
  "flmc": "分类15",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "015",
  "spmc": "商品15",
  "spfl": "分类15",
  "spsl": "10015",
  "bh": "0015",
  "rksl": "10015",
  "rkrq": "2020-12-10",
  "yjsl": "1015",
  "cksl": "10015",
  "ckrq": "2021-12-28",
  "yhm": "用户15",
  "xm": "张三15",
  "xb": "女"
},
{
  "flbh": "16",
  "flmc": "分类16",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "016",
  "spmc": "商品16",
  "spfl": "分类16",
  "spsl": "10016",
  "bh": "0016",
  "rksl": "10016",
  "rkrq": "2020-12-10",
  "yjsl": "1016",
  "cksl": "10016",
  "ckrq": "2021-12-28",
  "yhm": "用户16",
  "xm": "张三16",
  "xb": "女"
},
{
  "flbh": "17",
  "flmc": "分类17",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "017",
  "spmc": "商品17",
  "spfl": "分类17",
  "spsl": "10017",
  "bh": "0017",
  "rksl": "10017",
  "rkrq": "2020-12-10",
  "yjsl": "1017",
  "cksl": "10017",
  "ckrq": "2021-12-28",
  "yhm": "用户17",
  "xm": "张三17",
  "xb": "女"
},
{
  "flbh": "18",
  "flmc": "分类18",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "018",
  "spmc": "商品18",
  "spfl": "分类18",
  "spsl": "10018",
  "bh": "0018",
  "rksl": "10018",
  "rkrq": "2020-12-10",
  "yjsl": "1018",
  "cksl": "10018",
  "ckrq": "2021-12-28",
  "yhm": "用户18",
  "xm": "张三18",
  "xb": "女"
},
{
  "flbh": "19",
  "flmc": "分类19",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "019",
  "spmc": "商品19",
  "spfl": "分类19",
  "spsl": "10019",
  "bh": "0019",
  "rksl": "10019",
  "rkrq": "2020-12-10",
  "yjsl": "1019",
  "cksl": "10019",
  "ckrq": "2021-12-28",
  "yhm": "用户19",
  "xm": "张三19",
  "xb": "女"
},
{
  "flbh": "20",
  "flmc": "分类20",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "020",
  "spmc": "商品20",
  "spfl": "分类20",
  "spsl": "10020",
  "bh": "0020",
  "rksl": "10020",
  "rkrq": "2020-12-10",
  "yjsl": "1020",
  "cksl": "10020",
  "ckrq": "2021-12-28",
  "yhm": "用户20",
  "xm": "张三20",
  "xb": "女"
},
{
  "flbh": "21",
  "flmc": "分类21",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "021",
  "spmc": "商品21",
  "spfl": "分类21",
  "spsl": "10021",
  "bh": "0021",
  "rksl": "10021",
  "rkrq": "2020-12-10",
  "yjsl": "1021",
  "cksl": "10021",
  "ckrq": "2021-12-28",
  "yhm": "用户21",
  "xm": "张三21",
  "xb": "女"
},
{
  "flbh": "22",
  "flmc": "分类22",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "022",
  "spmc": "商品22",
  "spfl": "分类22",
  "spsl": "10022",
  "bh": "0022",
  "rksl": "10022",
  "rkrq": "2020-12-10",
  "yjsl": "1022",
  "cksl": "10022",
  "ckrq": "2021-12-28",
  "yhm": "用户22",
  "xm": "张三22",
  "xb": "女"
},
{
  "flbh": "23",
  "flmc": "分类23",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "023",
  "spmc": "商品23",
  "spfl": "分类23",
  "spsl": "10023",
  "bh": "0023",
  "rksl": "10023",
  "rkrq": "2020-12-10",
  "yjsl": "1023",
  "cksl": "10023",
  "ckrq": "2021-12-28",
  "yhm": "用户23",
  "xm": "张三23",
  "xb": "女"
},
{
  "flbh": "24",
  "flmc": "分类24",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "024",
  "spmc": "商品24",
  "spfl": "分类24",
  "spsl": "10024",
  "bh": "0024",
  "rksl": "10024",
  "rkrq": "2020-12-10",
  "yjsl": "1024",
  "cksl": "10024",
  "ckrq": "2021-12-28",
  "yhm": "用户24",
  "xm": "张三24",
  "xb": "女"
},
{
  "flbh": "25",
  "flmc": "分类25",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "025",
  "spmc": "商品25",
  "spfl": "分类25",
  "spsl": "10025",
  "bh": "0025",
  "rksl": "10025",
  "rkrq": "2020-12-10",
  "yjsl": "1025",
  "cksl": "10025",
  "ckrq": "2021-12-28",
  "yhm": "用户25",
  "xm": "张三25",
  "xb": "女"
},
{
  "flbh": "26",
  "flmc": "分类26",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "026",
  "spmc": "商品26",
  "spfl": "分类26",
  "spsl": "10026",
  "bh": "0026",
  "rksl": "10026",
  "rkrq": "2020-12-10",
  "yjsl": "1026",
  "cksl": "10026",
  "ckrq": "2021-12-28",
  "yhm": "用户26",
  "xm": "张三26",
  "xb": "女"
},
{
  "flbh": "27",
  "flmc": "分类27",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "027",
  "spmc": "商品27",
  "spfl": "分类27",
  "spsl": "10027",
  "bh": "0027",
  "rksl": "10027",
  "rkrq": "2020-12-10",
  "yjsl": "1027",
  "cksl": "10027",
  "ckrq": "2021-12-28",
  "yhm": "用户27",
  "xm": "张三27",
  "xb": "女"
},
{
  "flbh": "28",
  "flmc": "分类28",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "028",
  "spmc": "商品28",
  "spfl": "分类28",
  "spsl": "10028",
  "bh": "0028",
  "rksl": "10028",
  "rkrq": "2020-12-10",
  "yjsl": "1028",
  "cksl": "10028",
  "ckrq": "2021-12-28",
  "yhm": "用户28",
  "xm": "张三28",
  "xb": "女"
},
{
  "flbh": "29",
  "flmc": "分类29",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "029",
  "spmc": "商品29",
  "spfl": "分类29",
  "spsl": "10029",
  "bh": "0029",
  "rksl": "10029",
  "rkrq": "2020-12-10",
  "yjsl": "1029",
  "cksl": "10029",
  "ckrq": "2021-12-28",
  "yhm": "用户29",
  "xm": "张三29",
  "xb": "女"
},
{
  "flbh": "30",
  "flmc": "分类30",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "030",
  "spmc": "商品30",
  "spfl": "分类30",
  "spsl": "10030",
  "bh": "0030",
  "rksl": "10030",
  "rkrq": "2020-12-10",
  "yjsl": "1030",
  "cksl": "10030",
  "ckrq": "2021-12-28",
  "yhm": "用户30",
  "xm": "张三30",
  "xb": "女"
},
{
  "flbh": "31",
  "flmc": "分类31",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "031",
  "spmc": "商品31",
  "spfl": "分类31",
  "spsl": "10031",
  "bh": "0031",
  "rksl": "10031",
  "rkrq": "2020-12-10",
  "yjsl": "1031",
  "cksl": "10031",
  "ckrq": "2021-12-28",
  "yhm": "用户31",
  "xm": "张三31",
  "xb": "女"
},
{
  "flbh": "32",
  "flmc": "分类32",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "032",
  "spmc": "商品32",
  "spfl": "分类32",
  "spsl": "10032",
  "bh": "0032",
  "rksl": "10032",
  "rkrq": "2020-12-10",
  "yjsl": "1032",
  "cksl": "10032",
  "ckrq": "2021-12-28",
  "yhm": "用户32",
  "xm": "张三32",
  "xb": "女"
},
{
  "flbh": "33",
  "flmc": "分类33",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "033",
  "spmc": "商品33",
  "spfl": "分类33",
  "spsl": "10033",
  "bh": "0033",
  "rksl": "10033",
  "rkrq": "2020-12-10",
  "yjsl": "1033",
  "cksl": "10033",
  "ckrq": "2021-12-28",
  "yhm": "用户33",
  "xm": "张三33",
  "xb": "女"
},
{
  "flbh": "34",
  "flmc": "分类34",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "034",
  "spmc": "商品34",
  "spfl": "分类34",
  "spsl": "10034",
  "bh": "0034",
  "rksl": "10034",
  "rkrq": "2020-12-10",
  "yjsl": "1034",
  "cksl": "10034",
  "ckrq": "2021-12-28",
  "yhm": "用户34",
  "xm": "张三34",
  "xb": "女"
},
{
  "flbh": "35",
  "flmc": "分类35",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "035",
  "spmc": "商品35",
  "spfl": "分类35",
  "spsl": "10035",
  "bh": "0035",
  "rksl": "10035",
  "rkrq": "2020-12-10",
  "yjsl": "1035",
  "cksl": "10035",
  "ckrq": "2021-12-28",
  "yhm": "用户35",
  "xm": "张三35",
  "xb": "女"
},
{
  "flbh": "36",
  "flmc": "分类36",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "036",
  "spmc": "商品36",
  "spfl": "分类36",
  "spsl": "10036",
  "bh": "0036",
  "rksl": "10036",
  "rkrq": "2020-12-10",
  "yjsl": "1036",
  "cksl": "10036",
  "ckrq": "2021-12-28",
  "yhm": "用户36",
  "xm": "张三36",
  "xb": "女"
},
{
  "flbh": "37",
  "flmc": "分类37",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "037",
  "spmc": "商品37",
  "spfl": "分类37",
  "spsl": "10037",
  "bh": "0037",
  "rksl": "10037",
  "rkrq": "2020-12-10",
  "yjsl": "1037",
  "cksl": "10037",
  "ckrq": "2021-12-28",
  "yhm": "用户37",
  "xm": "张三37",
  "xb": "女"
},
{
  "flbh": "38",
  "flmc": "分类38",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "038",
  "spmc": "商品38",
  "spfl": "分类38",
  "spsl": "10038",
  "bh": "0038",
  "rksl": "10038",
  "rkrq": "2020-12-10",
  "yjsl": "1038",
  "cksl": "10038",
  "ckrq": "2021-12-28",
  "yhm": "用户38",
  "xm": "张三38",
  "xb": "女"
},
{
  "flbh": "39",
  "flmc": "分类39",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "039",
  "spmc": "商品39",
  "spfl": "分类39",
  "spsl": "10039",
  "bh": "0039",
  "rksl": "10039",
  "rkrq": "2020-12-10",
  "yjsl": "1039",
  "cksl": "10039",
  "ckrq": "2021-12-28",
  "yhm": "用户39",
  "xm": "张三39",
  "xb": "女"
},
{
  "flbh": "40",
  "flmc": "分类40",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "040",
  "spmc": "商品40",
  "spfl": "分类40",
  "spsl": "10040",
  "bh": "0040",
  "rksl": "10040",
  "rkrq": "2020-12-10",
  "yjsl": "1040",
  "cksl": "10040",
  "ckrq": "2021-12-28",
  "yhm": "用户40",
  "xm": "张三40",
  "xb": "男"
},
{
  "flbh": "41",
  "flmc": "分类41",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "041",
  "spmc": "商品41",
  "spfl": "分类41",
  "spsl": "10041",
  "bh": "0041",
  "rksl": "10041",
  "rkrq": "2020-12-10",
  "yjsl": "1041",
  "cksl": "10041",
  "ckrq": "2021-12-28",
  "yhm": "用户41",
  "xm": "张三41",
  "xb": "男"
},
{
  "flbh": "42",
  "flmc": "分类42",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "042",
  "spmc": "商品42",
  "spfl": "分类42",
  "spsl": "10042",
  "bh": "0042",
  "rksl": "10042",
  "rkrq": "2020-12-10",
  "yjsl": "1042",
  "cksl": "10042",
  "ckrq": "2021-12-28",
  "yhm": "用户42",
  "xm": "张三42",
  "xb": "男"
},
{
  "flbh": "43",
  "flmc": "分类43",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "043",
  "spmc": "商品43",
  "spfl": "分类43",
  "spsl": "10043",
  "bh": "0043",
  "rksl": "10043",
  "rkrq": "2020-12-10",
  "yjsl": "1043",
  "cksl": "10043",
  "ckrq": "2021-12-28",
  "yhm": "用户43",
  "xm": "张三43",
  "xb": "男"
},
{
  "flbh": "44",
  "flmc": "分类44",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "044",
  "spmc": "商品44",
  "spfl": "分类44",
  "spsl": "10044",
  "bh": "0044",
  "rksl": "10044",
  "rkrq": "2020-12-10",
  "yjsl": "1044",
  "cksl": "10044",
  "ckrq": "2021-12-28",
  "yhm": "用户44",
  "xm": "张三44",
  "xb": "男"
},
{
  "flbh": "45",
  "flmc": "分类45",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "045",
  "spmc": "商品45",
  "spfl": "分类45",
  "spsl": "10045",
  "bh": "0045",
  "rksl": "10045",
  "rkrq": "2020-12-10",
  "yjsl": "1045",
  "cksl": "10045",
  "ckrq": "2021-12-28",
  "yhm": "用户45",
  "xm": "张三45",
  "xb": "男"
},
{
  "flbh": "46",
  "flmc": "分类46",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "046",
  "spmc": "商品46",
  "spfl": "分类46",
  "spsl": "10046",
  "bh": "0046",
  "rksl": "10046",
  "rkrq": "2020-12-10",
  "yjsl": "1046",
  "cksl": "10046",
  "ckrq": "2021-12-28",
  "yhm": "用户46",
  "xm": "张三46",
  "xb": "男"
},
{
  "flbh": "47",
  "flmc": "分类47",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "047",
  "spmc": "商品47",
  "spfl": "分类47",
  "spsl": "10047",
  "bh": "0047",
  "rksl": "10047",
  "rkrq": "2020-12-10",
  "yjsl": "1047",
  "cksl": "10047",
  "ckrq": "2021-12-28",
  "yhm": "用户47",
  "xm": "张三47",
  "xb": "男"
},
{
  "flbh": "48",
  "flmc": "分类48",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "048",
  "spmc": "商品48",
  "spfl": "分类48",
  "spsl": "10048",
  "bh": "0048",
  "rksl": "10048",
  "rkrq": "2020-12-10",
  "yjsl": "1048",
  "cksl": "10048",
  "ckrq": "2021-12-28",
  "yhm": "用户48",
  "xm": "张三48",
  "xb": "男"
},
{
  "flbh": "49",
  "flmc": "分类49",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "049",
  "spmc": "商品49",
  "spfl": "分类49",
  "spsl": "10049",
  "bh": "0049",
  "rksl": "10049",
  "rkrq": "2020-12-10",
  "yjsl": "1049",
  "cksl": "10049",
  "ckrq": "2021-12-28",
  "yhm": "用户49",
  "xm": "张三49",
  "xb": "男"
},
{
  "flbh": "50",
  "flmc": "分类50",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "050",
  "spmc": "商品50",
  "spfl": "分类50",
  "spsl": "10050",
  "bh": "0050",
  "rksl": "10050",
  "rkrq": "2020-12-10",
  "yjsl": "1050",
  "cksl": "10050",
  "ckrq": "2021-12-28",
  "yhm": "用户50",
  "xm": "张三50",
  "xb": "男"
},
{
  "flbh": "51",
  "flmc": "分类51",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "051",
  "spmc": "商品51",
  "spfl": "分类51",
  "spsl": "10051",
  "bh": "0051",
  "rksl": "10051",
  "rkrq": "2020-12-10",
  "yjsl": "1051",
  "cksl": "10051",
  "ckrq": "2021-12-28",
  "yhm": "用户51",
  "xm": "张三51",
  "xb": "男"
},
{
  "flbh": "52",
  "flmc": "分类52",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "052",
  "spmc": "商品52",
  "spfl": "分类52",
  "spsl": "10052",
  "bh": "0052",
  "rksl": "10052",
  "rkrq": "2020-12-10",
  "yjsl": "1052",
  "cksl": "10052",
  "ckrq": "2021-12-28",
  "yhm": "用户52",
  "xm": "张三52",
  "xb": "男"
},
{
  "flbh": "53",
  "flmc": "分类53",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "053",
  "spmc": "商品53",
  "spfl": "分类53",
  "spsl": "10053",
  "bh": "0053",
  "rksl": "10053",
  "rkrq": "2020-12-10",
  "yjsl": "1053",
  "cksl": "10053",
  "ckrq": "2021-12-28",
  "yhm": "用户53",
  "xm": "张三53",
  "xb": "男"
},
{
  "flbh": "54",
  "flmc": "分类54",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "054",
  "spmc": "商品54",
  "spfl": "分类54",
  "spsl": "10054",
  "bh": "0054",
  "rksl": "10054",
  "rkrq": "2020-12-10",
  "yjsl": "1054",
  "cksl": "10054",
  "ckrq": "2021-12-28",
  "yhm": "用户54",
  "xm": "张三54",
  "xb": "男"
},
{
  "flbh": "55",
  "flmc": "分类55",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "055",
  "spmc": "商品55",
  "spfl": "分类55",
  "spsl": "10055",
  "bh": "0055",
  "rksl": "10055",
  "rkrq": "2020-12-10",
  "yjsl": "1055",
  "cksl": "10055",
  "ckrq": "2021-12-28",
  "yhm": "用户55",
  "xm": "张三55",
  "xb": "男"
},
{
  "flbh": "56",
  "flmc": "分类56",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "056",
  "spmc": "商品56",
  "spfl": "分类56",
  "spsl": "10056",
  "bh": "0056",
  "rksl": "10056",
  "rkrq": "2020-12-10",
  "yjsl": "1056",
  "cksl": "10056",
  "ckrq": "2021-12-28",
  "yhm": "用户56",
  "xm": "张三56",
  "xb": "男"
},
{
  "flbh": "57",
  "flmc": "分类57",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "057",
  "spmc": "商品57",
  "spfl": "分类57",
  "spsl": "10057",
  "bh": "0057",
  "rksl": "10057",
  "rkrq": "2020-12-10",
  "yjsl": "1057",
  "cksl": "10057",
  "ckrq": "2021-12-28",
  "yhm": "用户57",
  "xm": "张三57",
  "xb": "男"
},
{
  "flbh": "58",
  "flmc": "分类58",
  "flms": "这是分类描述",
  "bz": "这是分类备注",
  "kcbh": "058",
  "spmc": "商品58",
  "spfl": "分类58",
  "spsl": "10058",
  "bh": "0058",
  "rksl": "10058",
  "rkrq": "2020-12-10",
  "yjsl": "1058",
  "cksl": "10058",
  "ckrq": "2021-12-28",
  "yhm": "用户58",
  "xm": "张三58",
  "xb": "男"
}
]
  let anniu=document.getElementById('anniu')
  let pageItem=document.getElementsByClassName('pageItem')//集合
  let li1 = document.getElementsByClassName('li1')
  let dangqianye = 1
  let eachNum=10
  let maxPage
  // let content1=document.getElementsByClassName('content1')
  //渲染tbody里面根据数据渲染tr td节点
  function showTable(date){//1
      caozuo.innerHTML = ""//循环之前先清空
      date.forEach(item=>{                        //循环数组里面的每一项
          //累加显示数据里面的每一项
          caozuo.innerHTML +=`      
          <tr>
            <td>${item.flbh}</td>\
            <td>${item.spmc}</td>
            <td>${item.spfl}</td>
            <td>${item.spsl}</td>
            <td>
            <div class="change" data-toggle="modal"
            data-target="#myModal" onclick='bianji(this)'>编辑</div>
            </td>
            <td>
            <div class='del' data-toggle="modal"
            data-target="#myModal" onclick='delsan(this)'>删除</div>
            </td>
          </tr>
          `
      })
  }
  // 渲染分页按钮的方法2
  function goPage(yema) {
  let pageItemList = document.getElementsByClassName('pageItem')
  for (let i = 0; i < pageItemList.length; i++) {
    pageItemList[i].addEventListener('click', function () {
        goPage(i + 1)
    })
    }
  for (let i = 0; i < pageItemList.length; i++) {
      pageItemList[i].style.backgroundColor = 'grey'  //被点击的变色没被点击的不变
  }
  let qishi = (yema - 1) * 10
  let arrStu = allData.slice(qishi, qishi + 10)   //
  showTable(arrStu)
  dangqianye = yema
  }
  function showDiv(data) {
  let pageNum = document.getElementById('pageNum')
  pageNum.innerHTML = ''
  maxPage = Math.ceil(data.length / 10)  //向上取整
  for (let i = 1; i <= maxPage; i++) {
      pageNum.innerHTML += `<div class="pageItem">${i}</div>`
  }
  }
  goPage(dangqianye)
  // 用现代绑定获取节点 pageItem的所有节点 应该在渲染pageItem之后获取 
  // let pageItemList = document.getElementsByClassName('pageItem')
  
  //上一页方法 当当前页等于第一页的时候就不再执行
  function prePage() {
  if (dangqianye != 1) {
      dangqianye--
      goPage(dangqianye)
  }
  }
  //下一页方法当下一页小于最大页的时候才执行
  function nextPage() {
  if (dangqianye < maxPage) {
      dangqianye++
      goPage(dangqianye)
  }
  }
  //每页展示条数
  // $('.menuPage').on('click', function () {
  // downPage($(this))
  // })
  // function downPage(obj){
  //     $('#dropdownMenu2').text(obj.text())
  //     eachNum=parseInt(obj.attr('value'))
  //     maxPage=Math.ceil(allData.length/eachNum)
  //     showDiv(maxPage)
  //     dangqianye=1
  //     goPage(dangqianye)
  // 编辑数据
  function  bianji(obj){
  let objval = $(obj).parent().siblings('td')
  $('.modal-content').html(`
  <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                      aria-hidden="true">&times;</span></button>
                  <h4 class="modal-title" id="exampleModalLabel">编辑数据</h4>
                  </div>
                  <div class="modal-body clear">
              
                  <div class="modal-body clear">
                      <p class="xsmt">
                      <span>库存编号：</span><input type="text" value=${objval.eq(0).text()} />
                      </p>
                      <p class="xsmt">
                      <span>商品名称：</span><input type="text" value=${objval.eq(1).text()} "/>
                      </p>
                      <p class="xsmt">
                      <span>商品分类：</span><input type="text" value=${objval.eq(2).text()} />
                      </p>
                      <p class="xsmt">
                      <span>商品数量：</span><input type="text" value=${objval.eq(3).text()} />
                      </p>
                  </div>
                  <div class="modal-footer fenge">
                      <button type="button" class="btn btn-default addbtn_ok" data-dismiss="modal">取消</button>
                      <button type="button" class="btn btn-primary addbtn_no" onclick="Change()"  data-dismiss="modal">确认</button>
                  </div>
              
              </div>`)
  }
  function Change(){
  for(let i=0; i<allData.length; i++){
      if(allData[i].flbh==$('.xsmt').eq(0).children().last().val()){
      allData[i].flbh = $('.xsmt').eq(0).children().last().val()
      allData[i].spmc = $('.xsmt').eq(1).children().last().val()
      allData[i].spfl = $('.xsmt').eq(2).children().last().val()
      allData[i].spsl = $('.xsmt').eq(3).children().last().val()
      }
  }
  goPage(dangqianye)
  // console.log(goPage(nowPageNum));
  }
  //删除商品
  function delsan(obj) {
  let objval = $(obj).parent().siblings('td')
  let delxs = objval.first().text()
  $('.modal-content').html(`
      <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
          aria-hidden="true">&times;</span></button>
      <h4 class="modal-title" id="myModalLabel">删除商品</h4>
      </div>
      <div class="modal-body">
      <p>确认删除商品编号为：${delxs}&nbsp的商品数据吗？</p>
      </div>
      <div class="modal-footer">
      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
      <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="shanchu(${delxs})">确定</button>
      </div>`)
  }
  //删除数据
  function shanchu(flbh) {
          for (let i = 0; i < allData.length; i++) {
              if (flbh == allData[i].flbh) {
              allData.splice(i, 1)
              // break;
              }
          }
          showDiv(allData)
          goPage(dangqianye)
          }
  // 选项卡
  function tabClick(domNode,num){
  let content1=document.getElementsByClassName('content1')
  domNode.style.backgroundColor = 'white'
  domNode.style.color ='rgb(36,104,169)'
  //颜色改变
  for (let i = 0; i < li1.length; i++) {                     
      if (domNode != li1[i]) {
      li1[i].style.backgroundColor = 'rgb(36,104,169)'
      li1[i].style.color ='white'
      }
  }
  content1[num].style.display = 'block'                             
   //显示被点击的内容
  for (let i = 0; i <content1.length; i++) {
      if (num != i) {
      content1[i].style.display = 'none '                     //不是被点击的内容隐藏
      }
  }
  }
  tabClick(li[0], 0) 
  //添加类别
  function addck() {
      let add = new AddckData()
      allData.unshift(add)
      goPage(dangqianye)
      // // $("#exampleModal").modal('hide');
      // console.log(xsgldata)
      }
  // 添加分类
  function AddckData() {
      this.flbh = $('#beizhu').text()
      this.spmc = $('.xsmt1').eq(0).children().last().val()
      this.spfl = $('#ckmc option:selected').text()
      this.spsl= $('#beizhu').val()
      }
    
 